<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>

<script language="JavaScript">


 	function MBC_PAY(){
		  window.location="/mbcpay.b2c ";
		}


function MBC_PAYINFO(){
  var orderinfo =
       "TXCODE="+mbcpay_b2c.TXCODE.value+","+
       "WAPVER="+mbcpay_b2c.WAPVER.value+","+
	  "MERCHANTID="+mbcpay_b2c.MERCHANTID.value+","+
	  "ORDERID="+mbcpay_b2c.ORDERID.value+","+
	  "PAYMENT="+mbcpay_b2c.PAYMENT.value+","+
	  "BRANCHID=442000000"+","+
	  "CURCODE=01"+","+
	  "REMARK1="+","+
	  "REMARK2="+","+
	  "SUPPORTACCOUNTTYPE=3"+","+
	  "MAGIC="+mbcpay_b2c.MAGIC.value+","+
	  "POSID="+mbcpay_b2c.POSID.value;
  return "{" + orderinfo + "}";
}
 
//Android
function MBC_PAY1(){
	 var orderinfo =
		"TXCODE="+mbcpay_b2c.TXCODE.value+","+
		"WAPVER="+mbcpay_b2c.WAPVER.value+","+
		  "MERCHANTID="+mbcpay_b2c.MERCHANTID.value+","+
		  "ORDERID="+mbcpay_b2c.ORDERID.value+","+
		  "PAYMENT="+mbcpay_b2c.PAYMENT.value+","+
		  "MAGIC="+mbcpay_b2c.MAGIC.value+","+
		  "BRANCHID=442000000"+","+
		  "CURCODE=01"+","+
		  "REMARK1="+","+
		  "REMARK2="+","+
		  "SUPPORTACCOUNTTYPE=3"+","+
		  "POSID="+mbcpay_b2c.POSID.value;
	      window.mbcpay.b2c(orderinfo);
	}

</script>

<script language="JavaScript">
// ios

</script>
<c:if test="${not empty param.PLATFORM}">
${param.orderFormContent }
</c:if>


<div style="color: #333;top: 18%;position: fixed;text-align: center;z-index: 9999;width: 100%;">	
 <ul  style="margin:10px;">
 	<li style="margin:5px;">
        <div class="insertinfo"><span class="s_14">用户帐号：<strong style="color: #D40001;">${user.username}</strong></span></div>
    </li>
    <li style="margin:5px;">
        <div class="insertinfo"><span class="s_14 ">本次扣款金额：<strong style="color: #D40001;">
        <fmt:formatNumber value="${param.money}" pattern="￥###0.00" /></strong></span></div>
    </li>
    <li style="margin:5px;">
        <div class="insertinfo"><span class="s_14 ">账户余额：<strong style="color: #D40001;"><fmt:formatNumber value="${user.money/100 }" pattern="￥###0.00" /></strong></span></div>
    </li>
    <li style="margin:5px;">
        <div class="insertinfo"><span class="s_14 ">本次银行卡支付金额：<strong style="color: #D40001;"><fmt:formatNumber value="${param.payMoney/100 }" pattern="￥###0.00" /></strong></span></div>
    </li>
    <%-- <li style="margin:5px;">
        <div class="insertinfo"><span class="s_14 ">支付网关：
        <strong style="color: #D40001;">
        <c:if test="${not empty param.defaultbankname}">${param.defaultbankname }</c:if>
        <c:if test="${empty param.defaultbankname}">${store.storeCommon.paymentGateWayMap[param.providerId].name }</c:if>
        </strong>
        </span></div>
   </li> --%>
   <li style="margin:5px;">
        <div class="red"> 提示：确认后将进入网上银行进行付款 </div>
   </li>  
   <li style="margin:5px;">
   <div class="btn_line l mr_10">
   				<c:choose>
   				<c:when test="${empty param.PLATFORM}">
					<a href="javascript:void(0);"  onclick="_fnOrderSumbit(${param.money },'${param.providerId }','${param.payOrderNo}','${param.defaultbank }');"><span class="ui_btn ui_btn_blue" title="确认支付" >确认支付</span></a>
				</c:when>
				<c:when test="${param.PLATFORM=='Android'}">
					<a href="javascript:void(0);"  onclick="MBC_PAY1();"><span class="ui_btn ui_btn_blue" title="确认支付" >确认支付</span></a>
				</c:when>
				<c:when test="${param.PLATFORM=='iPhone'}">
					<a href="javascript:void(0);"  onclick="MBC_PAY();"><span class="ui_btn ui_btn_blue" title="确认支付" >确认支付</span></a>
				</c:when>
				</c:choose>
			</div>
			<div class="btn_line l mr_10">
				<a href="javascript:void(0);"  style="padding-top:15px; padding-left:5px;" onclick="Helper.getComponent('payok_winow').close();"><span class="ui_btn">返回修改</span></a>
			</div><div class="clr"></div>
      <!--  <a href="javascript:void(0);"  onclick="_fnOrderSumbit(${param.money },'${param.providerId }',${param.payOrderNo},'${param.defaultbank }');"><b title="确认支付">确认支付</b></a>
      <a href="javascript:void(0);"  style="padding-top:15px; padding-left:5px;" onclick="Helper.getComponent('payok_winow').close();">返回修改</a> -->
  </li>
</ul>
</div>
<div style="display: ;" id="aa" >

</div>